package {
	import flash.display.MovieClip;

	/**
	 * 楼层中等待人
	 * @author ase7en
	 */
	public class FloorPerson extends MovieClip {
		private var _personItem:PersonItem;
		public function FloorPerson() {
		}
		
		public function update(personItem:PersonItem):void {
			_personItem = personItem;	
			this.gotoAndStop(_personItem.fromFloor);
			this["toFloorTxt"].text = _personItem.toFloor.toString();
		}

		public function get personItem() : PersonItem {
			return _personItem;
		}

		public function set personItem(personItem : PersonItem) : void {
			_personItem = personItem;
		}
	}
}
